$.get("/statistics/reportYearBingFinance",function (data){
    var dom = document.getElementById("container");
    var myChart = echarts.init(dom);
    var app = {};
    option = null;
    option = {
      title:{
        text: '门诊部年度统计',
        x:'center'
      },
      tooltip:{
          trigger:'item',
          formatter: "{a} <br/>{b}:{c}({d}%)"
      },
      legend:{
          orient:'vertical',
          left:'left',
          data: data.name
      },
      series:[
          {
              name: '年份',
              type: 'pie',
              radius: '55%',
              center: ['50%','60%'],
              data: data,
              itemStyle:{
                  emphasis:{
                      shadowBlur:10,
                      shadowOffsetX: 0,
                      shadowColor: 'rgba(0,0,0,0.5)'
                  }
              }
          }
      ]
    };

    if(option && typeof option === "object"){
        myChart.setOption(option,true);
    }
});